package com.onlinemarket.thrid.domain;

import java.io.Serializable;
import org.springframework.stereotype.Component;

/**
 * 对应goods(商品)表
 * 
 * @author LHC
 *
 */
@Component
public class Goods implements Serializable {
	private static final long serialVersionUID = -3753970252790988105L;
	private int goods_id;
	private String goods_name;
	private double goods_price;
	private int goods_number;
	private int supplier_id;
	private int warehouse_id;
	private String supplier_name;
	private String warehouse_name;

	public Goods() {
	}

	public Goods(int goods_id, String goods_name, double goods_price, int goods_number, int supplier_id,
			int warehouse_id) {
		this.goods_id = goods_id;
		this.goods_name = goods_name;
		this.goods_price = goods_price;
		this.goods_number = goods_number;
		this.supplier_id = supplier_id;
		this.warehouse_id = warehouse_id;
	}

	public Goods(String goods_name, double goods_price, int goods_number, int supplier_id, int warehouse_id) {
		this.goods_name = goods_name;
		this.goods_price = goods_price;
		this.goods_number = goods_number;
		this.supplier_id = supplier_id;
		this.warehouse_id = warehouse_id;
	}

	public int getGoods_id() {
		return goods_id;
	}

	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}

	public String getGoods_name() {
		return goods_name;
	}

	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}

	public double getGoods_price() {
		return goods_price;
	}

	public void setGoods_price(double goods_price) {
		this.goods_price = goods_price;
	}

	public int getGoods_number() {
		return goods_number;
	}

	public void setGoods_number(int goods_number) {
		this.goods_number = goods_number;
	}

	public int getSupplier_id() {
		return supplier_id;
	}

	public void setSupplier_id(int supplier_id) {
		this.supplier_id = supplier_id;
	}

	public int getWarehouse_id() {
		return warehouse_id;
	}

	public void setWarehouse_id(int warehouse_id) {
		this.warehouse_id = warehouse_id;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getSupplier_name() {
		return supplier_name;
	}

	public void setSupplier_name(String supplier_name) {
		this.supplier_name = supplier_name;
	}

	public String getWarehouse_name() {
		return warehouse_name;
	}

	public void setWarehouse_name(String warehouse_name) {
		this.warehouse_name = warehouse_name;
	}

	@Override
	public String toString() {
		return "Goods [goods_int=" + goods_id + ", goods_name=" + goods_name + ", goods_price=" + goods_price
				+ ", goods_number=" + goods_number + ", supplier_id=" + supplier_id + ", warehouse_id=" + warehouse_id
				+ "]";
	}

}
